package com.tron.inheritance;

public class Employee {
    private String id;
    private String name;
    private String type;
    private Double salary;

    public Employee() {
        System.out.println("Employee()");
    }

    public Employee(String id, String name, String type, Double salary) {
        System.out.println("Employee(String id, String name, String type, Double salary)");
        this.id = id;
        this.name = name;
        this.type = type;
        this.salary = salary;
        System.out.println(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        System.out.println("Employee.getName()");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }
}
